<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="eio.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="eio.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.eio.html">Eio</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="eio.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>

 <p class="para">Request priority constants:
  <dl>

   
    <dt id="constant.eio-pri-min">
     <strong><code>EIO_PRI_MIN</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      Request minimal prioriry
     </span>
    </dd>

   
   
    <dt id="constant.eio-pri-default">
     <strong><code>EIO_PRI_DEFAULT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Request default prioriry
     </span>
    </dd>

   
   
    <dt id="constant.eio-pri-max">
     <strong><code>EIO_PRI_MAX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Request maximal prioriry
     </span>
    </dd>

   
   
  </dl>

 </p>

 <p class="para"><span class="function"><a href="function.eio-seek.html" class="function">eio_seek()</a></span> <code class="parameter">whence</code> argument:
  <dl>
   
    <dt id="constant.eio-seek-set">
     <strong><code>EIO_SEEK_SET</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      The offset is set to specified number of bytes(<code class="parameter">offset</code>).
     </span>
    </dd>

   
   
    <dt id="constant.eio-seek-cur">
     <strong><code>EIO_SEEK_CUR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      The offset is set to its current location plus <code class="parameter">offset</code> bytes.
     </span>
    </dd>

   
   
    <dt id="constant.eio-seek-end">
     <strong><code>EIO_SEEK_END</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
      The offset is set to the size of the file plus <code class="parameter">offset</code> bytes.
     </span>
    </dd>

   
  </dl>

 </p>

 <p class="para">
  Flags used with <span class="function"><a href="function.eio-readdir.html" class="function">eio_readdir()</a></span>:
  <dl>


   
    <dt id="constant.eio-readdir-dents">
     <strong><code>EIO_READDIR_DENTS</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     <span class="function"><a href="function.eio-readdir.html" class="function">eio_readdir()</a></span> flag. If specified, the result argument of the callback
     becomes an array with the following keys:
     <code class="literal">&#039;names&#039;</code> - array of directory names
     <code class="literal">&#039;dents&#039;</code> - array of <code class="literal">struct eio_dirent</code>-like
     arrays having the following keys each:
     <code class="literal">&#039;name&#039;</code> - the directory name;
     <code class="literal">&#039;type&#039;</code> - one of <em class="emphasis">EIO_DT_*</em>
     constants;
     <code class="literal">&#039;inode&#039;</code> - the inode number, if available, otherwise
     unspecified;
     </span>
    </dd>

   
   
    <dt id="constant.eio-readdir-dirs-first">
     <strong><code>EIO_READDIR_DIRS_FIRST</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     When this flag is specified, the names will be returned in an order
     where likely directories come first, in optimal stat order.
     </span>
    </dd>

   
   
    <dt id="constant.eio-readdir-stat-order">
     <strong><code>EIO_READDIR_STAT_ORDER</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     When this flag is specified, then the names will be returned in an order
     suitable for <code class="literal">stat</code>&#039;ing each one. When planning to
     <span class="function"><a href="function.stat.html" class="function">stat()</a></span> all files in the given directory, the
     returned order will likely be
     fastest.
     </span>
    </dd>

   
   
    <dt id="constant.eio-readdir-found-unknown">
     <strong><code>EIO_READDIR_FOUND_UNKNOWN</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">

     </span>
    </dd>

   



   
    <dt id="constant.eio-dt-unknown">
     <strong><code>EIO_DT_UNKNOWN</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Unknown node type(very common). Further <span class="function"><a href="function.stat.html" class="function">stat()</a></span> needed.
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-fifo">
     <strong><code>EIO_DT_FIFO</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     FIFO node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-chr">
     <strong><code>EIO_DT_CHR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-mpc">
     <strong><code>EIO_DT_MPC</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Multiplexed char device (v7+coherent) node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-dir">
     <strong><code>EIO_DT_DIR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Directory node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-nam">
     <strong><code>EIO_DT_NAM</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Xenix special named file node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-blk">
     <strong><code>EIO_DT_BLK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-mpb">
     <strong><code>EIO_DT_MPB</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Multiplexed block device (v7+coherent)
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-reg">
     <strong><code>EIO_DT_REG</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-nwk">
     <strong><code>EIO_DT_NWK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-cmp">
     <strong><code>EIO_DT_CMP</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     HP-UX network special node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-lnk">
     <strong><code>EIO_DT_LNK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Link node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-sock">
     <strong><code>EIO_DT_SOCK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Socket node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-door">
     <strong><code>EIO_DT_DOOR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Solaris door node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-wht">
     <strong><code>EIO_DT_WHT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Node type
     </span>
    </dd>

   
   
    <dt id="constant.eio-dt-max">
     <strong><code>EIO_DT_MAX</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     Highest node type value
     </span>
    </dd>

   



  </dl>

 </p>
 <p class="para">
  Access modes for <span class="function"><a href="function.eio-open.html" class="function">eio_open()</a></span> <code class="parameter">flags</code>
  argument:
  <dl>


   
    <dt id="constant.eio-o-rdonly">
     <strong><code>EIO_O_RDONLY</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-wronly">
     <strong><code>EIO_O_WRONLY</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-rdwr">
     <strong><code>EIO_O_RDWR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-nonblock">
     <strong><code>EIO_O_NONBLOCK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-append">
     <strong><code>EIO_O_APPEND</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-creat">
     <strong><code>EIO_O_CREAT</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-trunc">
     <strong><code>EIO_O_TRUNC</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-excl">
     <strong><code>EIO_O_EXCL</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-o-fsync">
     <strong><code>EIO_O_FSYNC</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   


  </dl>

 </p>
 <p class="para">
  <code class="parameter">mode</code> argument flags for <span class="function"><a href="function.eio-open.html" class="function">eio_open()</a></span>:
  <dl>


   
    <dt id="constant.eio-s-irusr">
     <strong><code>EIO_S_IRUSR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-iwusr">
     <strong><code>EIO_S_IWUSR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ixusr">
     <strong><code>EIO_S_IXUSR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-irgrp">
     <strong><code>EIO_S_IRGRP</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-iwgrp">
     <strong><code>EIO_S_IWGRP</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ixgrp">
     <strong><code>EIO_S_IXGRP</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-iroth">
     <strong><code>EIO_S_IROTH</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-iwoth">
     <strong><code>EIO_S_IWOTH</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ixoth">
     <strong><code>EIO_S_IXOTH</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ifreg">
     <strong><code>EIO_S_IFREG</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ifchr">
     <strong><code>EIO_S_IFCHR</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ifblk">
     <strong><code>EIO_S_IFBLK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ififo">
     <strong><code>EIO_S_IFIFO</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-s-ifsock">
     <strong><code>EIO_S_IFSOCK</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   



  </dl>

 </p>
 <p class="para">
  <span class="function"><a href="function.eio-sync-file-range.html" class="function">eio_sync_file_range()</a></span> flags:
  <dl>


   
    <dt id="constant.eio-sync-file-range-wait-before">
     <strong><code>EIO_SYNC_FILE_RANGE_WAIT_BEFORE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-sync-file-range-write">
     <strong><code>EIO_SYNC_FILE_RANGE_WRITE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   
   
    <dt id="constant.eio-sync-file-range-wait-after">
     <strong><code>EIO_SYNC_FILE_RANGE_WAIT_AFTER</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   



  </dl>

 </p>
 <p class="para">
  <span class="function"><a href="function.eio-fallocate.html" class="function">eio_fallocate()</a></span> flags:
  <dl>

   
    <dt id="constant.eio-falloc-fl-keep-size">
     <strong><code>EIO_FALLOC_FL_KEEP_SIZE</code></strong>
     (<span class="type">int</span>)
    </dt>

    <dd>

     <span class="simpara">
     </span>
    </dd>

   

  </dl>

 </p>

 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <p class="para">
   <em class="emphasis">EIO_S_I*</em> constants have the same meaning as their
   <em class="emphasis">S_I*</em> POSIX counterparts.
  </p>
 </p></blockquote>

 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <p class="para">
   <em class="emphasis">EIO_SYNC_FILE_*</em> constants have the same meaning as their
   <em class="emphasis">SYNC_FILE_**</em> counterparts.
  </p>
 </p></blockquote>

 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <p class="para">
   <em class="emphasis">EIO_O_*</em> constants have the same meaning as their
   <em class="emphasis">O_*</em> POSIX counterparts.
  </p>
 </p></blockquote>
</div>
</div></div></body></html>